<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>移动端 - OA办公系统</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <link rel="stylesheet" href="./css/style.css">
</head>
<body class="bg-gray-100 h-screen flex flex-col">
    <!-- 顶部导航栏 -->
    <header class="bg-blue-600 text-white shadow-md">
        <div class="px-4 py-3 flex justify-between items-center">
            <div class="flex items-center space-x-2">
                <i class="fas fa-building text-xl"></i>
                <h1 class="text-lg font-bold">企业OA办公系统</h1>
            </div>
            <div class="flex items-center space-x-3">
                <div class="relative">
                    <i class="fas fa-bell text-lg cursor-pointer hover:text-blue-200"></i>
                    <span class="absolute -top-1 -right-1 bg-red-500 text-xs rounded-full h-4 w-4 flex items-center justify-center">3</span>
                </div>
                <div class="flex items-center space-x-2 cursor-pointer hover:text-blue-200">
                    <img src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80" alt="用户头像" class="h-7 w-7 rounded-full">
                </div>
            </div>
        </div>
    </header>

    <!-- 欢迎信息 -->
    <div class="bg-white p-4 shadow-sm">
        <div class="flex justify-between items-center">
            <div>
                <h2 class="text-lg font-bold text-gray-800">您好，张经理</h2>
                <p class="text-sm text-gray-600">今天是 <span id="currentDate"></span></p>
            </div>
            <div class="bg-blue-100 text-blue-600 px-3 py-1 rounded-full text-sm font-medium">
                <i class="fas fa-user-clock mr-1"></i>
                <span>已打卡</span>
            </div>
        </div>
    </div>

    <!-- 主体内容 -->
    <div class="flex-1 overflow-auto p-4">
        <!-- 数据概览 -->
        <div class="grid grid-cols-2 gap-4 mb-6">
            <div class="bg-white rounded-lg shadow p-4 card-hover">
                <div class="flex justify-between items-center">
                    <div>
                        <p class="text-gray-500 text-xs">待办事项</p>
                        <h2 class="text-xl font-bold text-gray-800">12</h2>
                    </div>
                    <div class="h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-clipboard-list text-blue-500"></i>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-lg shadow p-4 card-hover">
                <div class="flex justify-between items-center">
                    <div>
                        <p class="text-gray-500 text-xs">待审批</p>
                        <h2 class="text-xl font-bold text-gray-800">8</h2>
                    </div>
                    <div class="h-10 w-10 bg-green-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-file-signature text-green-500"></i>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-lg shadow p-4 card-hover">
                <div class="flex justify-between items-center">
                    <div>
                        <p class="text-gray-500 text-xs">今日会议</p>
                        <h2 class="text-xl font-bold text-gray-800">3</h2>
                    </div>
                    <div class="h-10 w-10 bg-purple-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-users text-purple-500"></i>
                    </div>
                </div>
            </div>

            <div class="bg-white rounded-lg shadow p-4 card-hover">
                <div class="flex justify-between items-center">
                    <div>
                        <p class="text-gray-500 text-xs">未读消息</p>
                        <h2 class="text-xl font-bold text-gray-800">5</h2>
                    </div>
                    <div class="h-10 w-10 bg-red-100 rounded-full flex items-center justify-center">
                        <i class="fas fa-envelope text-red-500"></i>
                    </div>
                </div>
            </div>
        </div>

        <!-- 快捷功能 -->
        <div class="mb-6">
            <h3 class="text-lg font-medium text-gray-800 mb-3">快捷功能</h3>
            <div class="grid grid-cols-4 gap-3">
                <a href="#" class="flex flex-col items-center justify-center p-3 bg-white rounded-lg shadow hover:shadow-md transition-shadow">
                    <div class="h-10 w-10 bg-blue-100 rounded-full flex items-center justify-center mb-2">
                        <i class="fas fa-clock text-blue-500"></i>
                    </div>
                    <span class="text-xs text-gray-600">打卡签到</span>
                </a>
                <a href="#" class="flex flex-col items-center justify-center p-3 bg-white rounded-lg shadow hover:shadow-md transition-shadow">
                    <div class="h-10 w-10 bg-green-100 rounded-full flex items-center justify-center mb-2">
                        <i class="fas fa-file-alt text-green-500"></i>
                    </div>
                    <span class="text-xs text-gray-600">发起审批</span>
                </a>
                <a href="#" class="flex flex-col items-center justify-center p-3 bg-white rounded-lg shadow hover:shadow-md transition-shadow">
                    <div class="h-10 w-10 bg-yellow-100 rounded-full flex items-center justify-center mb-2">
                        <i class="fas fa-calendar-alt text-yellow-500"></i>
                    </div>
                    <span class="text-xs text-gray-600">日程安排</span>
                </a>
                <a href="#" class="flex flex-col items-center justify-center p-3 bg-white rounded-lg shadow hover:shadow-md transition-shadow">
                    <div class="h-10 w-10 bg-purple-100 rounded-full flex items-center justify-center mb-2">
                        <i class="fas fa-users text-purple-500"></i>
                    </div>
                    <span class="text-xs text-gray-600">发起会议</span>
                </a>
            </div>
        </div>

        <!-- 待办事项 -->
        <div class="mb-6">
            <div class="flex justify-between items-center mb-3">
                <h3 class="text-lg font-medium text-gray-800">待办事项</h3>
                <a href="#" class="text-sm text-blue-500">查看全部</a>
            </div>
            <div class="bg-white rounded-lg shadow overflow-hidden">
                <ul class="divide-y divide-gray-200">
                    <li class="p-4 hover:bg-blue-50">
                        <div class="flex justify-between items-center">
                            <div class="flex items-center">
                                <div class="h-8 w-8 bg-blue-100 rounded-full flex items-center justify-center mr-3">
                                    <i class="fas fa-file-alt text-blue-500"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium text-gray-800">市场部周报提交</h4>
                                    <p class="text-xs text-gray-500 mt-1">截止日期: 今天 18:00</p>
                                </div>
                            </div>
                            <span class="px-2 py-1 bg-yellow-100 text-yellow-800 text-xs rounded-full">紧急</span>
                        </div>
                    </li>
                    <li class="p-4 hover:bg-blue-50">
                        <div class="flex justify-between items-center">
                            <div class="flex items-center">
                                <div class="h-8 w-8 bg-green-100 rounded-full flex items-center justify-center mr-3">
                                    <i class="fas fa-tasks text-green-500"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium text-gray-800">产品方案评审</h4>
                                    <p class="text-xs text-gray-500 mt-1">截止日期: 明天 10:30</p>
                                </div>
                            </div>
                            <span class="px-2 py-1 bg-blue-100 text-blue-800 text-xs rounded-full">进行中</span>
                        </div>
                    </li>
                    <li class="p-4 hover:bg-blue-50">
                        <div class="flex justify-between items-center">
                            <div class="flex items-center">
                                <div class="h-8 w-8 bg-purple-100 rounded-full flex items-center justify-center mr-3">
                                    <i class="fas fa-users text-purple-500"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium text-gray-800">团队建设活动策划</h4>
                                    <p class="text-xs text-gray-500 mt-1">截止日期: 周五 17:00</p>
                                </div>
                            </div>
                            <span class="px-2 py-1 bg-gray-100 text-gray-800 text-xs rounded-full">普通</span>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>

    <!-- 底部导航 -->
    <nav class="bg-white border-t border-gray-200 flex justify-around py-2">
        <a href="#" class="flex flex-col items-center justify-center p-2 text-blue-500">
            <i class="fas fa-home text-xl"></i>
            <span class="text-xs mt-1">首页</span>
        </a>
        <a href="#" class="flex flex-col items-center justify-center p-2 text-gray-500">
            <i class="fas fa-tasks text-xl"></i>
            <span class="text-xs mt-1">审批</span>
        </a>
        <a href="#" class="flex flex-col items-center justify-center p-2 text-gray-500">
            <i class="fas fa-file-alt text-xl"></i>
            <span class="text-xs mt-1">文档</span>
        </a>
        <a href="#" class="flex flex-col items-center justify-center p-2 text-gray-500">
            <i class="fas fa-user text-xl"></i>
            <span class="text-xs mt-1">我的</span>
        </a>
    </nav>

    <script>
        // 显示当前日期
        document.addEventListener('DOMContentLoaded', function() {
            const now = new Date();
            const options = { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' };
            document.getElementById('currentDate').textContent = now.toLocaleDateString('zh-CN', options);
        });
    </script>
</body>
</html>